#include <iostream>
#include <sstream>
#include <string>

using namespace std;
int main(int argc, char** argv)
{
	string content;
	string part;
    bool bExistedDigit = false;;

	getline(cin, content);
	istringstream is(content);
	while (is >> part)
    {
        ostringstream os;
        for(size_t i=0; i<part.size(); i++)
        {
            if (part[i]<'0' || part[i]>'9')
                os << " ";
            else
                os << part[i];
        }
        istringstream is2(os.str());
        int value;
        while (is2 >> value)
        {
            cout << value << " ";
            bExistedDigit = true;
        }
    }

    if (bExistedDigit)
        cout << endl;
    else
        cout << "NULL" << endl;

    return 0;
}
